import { defineStore } from 'pinia'
import { ref } from 'vue'

export const jobMessageStore = defineStore(
    'jobMessage',
    () => {
        const jobMessage = ref('')
        const setJobMessage = (newJobMessage) => {
            jobMessage.value = newJobMessage
        }
        const removeJobMessage = () => {
            jobMessage.value = ''
        }
        return {
            jobMessage,
            setJobMessage,
            removeJobMessage
        }
    },
    {
        persist: true
    }
)
